<ul>
                    <li id="appsli" >
                        <?php
                        echo jq_link_to_remote('Apps >', array(
                            'update' => 'appsli',
                            'position' => 'after',
                            'url' => 'ygmPerModule/subDir?nameno=apps'
                        ))
                        ?>
                    </li>
                    <li id="pluginsli" >
                        <?php
                        echo jq_link_to_remote('Plugins >', array(
                            'update' => 'pluginsli',
                            'position' => 'after',
                            'url' => 'ygmPerModule/subDir?nameno=plugins'
                        ))
                        ?>    
                    </li>
                </ul>
<ul>
    <?php
    while (false !== ($dirname = $diretorio->read())) :
        if ($dirname != '.' && $dirname != '..'):
            ?>
            <li id="<?php echo $dirname . 'li' ?>" > 
                <?php
                echo jq_link_to_remote($dirname, array(
                    'update' => $dirname . 'li',
                    'position' => 'after',
                    'url' => 'ygmPerModule/subDir?nameno=' . $sf_request->getParameter('nameno') . '/' . $dirname
                ))
                ?>
            </li>
            <?php
        endif;
    endwhile;
    ?>
</ul>
